
cc.Class({
    extends: cc.Component,

    properties: {
       shopList:cc.Node,
       map:cc.Node,
       market:cc.Node,
       sitting:cc.Node,
       support:cc.Node,
       shopDetail:cc.Node,
       loading:cc.Node,
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },
    changeTab(target,name){
        this.loading.active = true;
        this.scheduleOnce(() => {
            this.loading.active = false;
        },0.5)
        this.shopList.active = false;
        this.map.active = false;
        this.market.active = false;
        this.sitting.active = false;
        this.support.active = false;
        this.shopDetail.active = false;
        this[name].active = true;
    }
    // update (dt) {},
});
